export const change = (bgColor: any, alpha: number) => {
  // eslint-disable-next-line no-param-reassign
  bgColor = bgColor ? bgColor : "#40E0D0";
  let color = bgColor.slice(1); // 去掉'#'号
  let rgba = [
    parseInt("0x" + color.slice(0, 2)),
    parseInt("0x" + color.slice(2, 4)),
    parseInt("0x" + color.slice(4, 6)),
    alpha,
  ];
  return "rgba(" + rgba.toString() + ")";
};
